//
//  SelectTribes.h
//  PigMarket
//
//  Created by mac on 2019/4/23.
//  Copyright © 2019 felix.pigmarket.oc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseParam.h"

typedef NS_ENUM(NSInteger, AreaStatus) {
    AreaStatusProvince = 1, //省
    AreaStatusCity = 2,     //市
    AreaStatusDistrict = 3,  //区
    AreaStatusTribal      //部落
};



/*
 "provinceId":1,
 "provinceName":"天津",
 "ctiy":Array[1],
 "isOpen":1
 */

@class CityItem, AreaItem, TribeItem , SelectTribes;

@interface SelectTribesList : NSObject

@property (nonatomic , strong) NSArray <SelectTribes *> *list;

@end


@interface SelectTribes : NSObject

@property (nonatomic, strong) NSNumber *isOpen;
@property (nonatomic, strong) NSNumber *provinceId;
@property (nonatomic, copy) NSString *provinceName;
@property (nonatomic, strong) NSArray <CityItem *> *ctiy;

@end


/*
 "ctiyId":2,
 "ctiyName":"天津市",
 "isOpen":1,
 "area":Array[1]
 */
@interface CityItem : NSObject

@property (nonatomic, strong) NSNumber *isOpen;
@property (nonatomic, strong) NSNumber *ctiyId;
@property (nonatomic, copy) NSString *ctiyName;
@property (nonatomic, strong) NSArray <AreaItem *> *area;

@end

/*
 "areaId":3,
 "areaName":"武清区",
 "isOpen":1,
 "tribe":Array[4]
 */
@interface AreaItem : NSObject

@property (nonatomic, strong) NSNumber *isOpen;
@property (nonatomic, strong) NSNumber *areaId;
@property (nonatomic, copy) NSString *areaName;
@property (nonatomic, strong) NSArray <TribeItem *> *tribe;


@end

/*
 "tribeId":1,
 "tribeName":"下朱庄部落",
 "regionId":3,
 "isOpen":1,
 "tribeContact":"1,2"
 */

@interface TribeItem : NSObject

@property (nonatomic, strong) NSNumber *regionId;
@property (nonatomic, strong) NSNumber *tribeId;
@property (nonatomic, strong) NSNumber *isOpen;
@property (nonatomic, copy) NSString *tribeName;
@property (nonatomic, copy) NSString *tribeContact;

@end




@interface RangeSelectModel : BaseParam

@property (nonatomic, assign) NSInteger province;
@property (nonatomic, assign) NSInteger city;
@property (nonatomic, assign) NSInteger country;
@property (nonatomic, assign) NSInteger tribal;

@end
